Skip to content

Update syntax in docs #10635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2020
Merged

Update syntax in docs #10635

merged 1 commit into from
Dec 4, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 3, 2020

  • Update syntax.md to remove features that are unsupported or only supported by a -Y option.
  • Add clause on catch case ...
  • Add clause on extending with ,

It is equivalent to the old form
```
class A extends B with C { ... }
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the with form be deprecated? Should we say something about which form is recommended?

@@ -1091,6 +1091,8 @@ object Parsers {
/** Singleton ::= SimpleRef
* | SimpleLiteral
* | Singleton ‘.’ id
* -- not yet | Singleton ‘(’ Singletons ‘)’
* -- not yet | Singleton ‘[’ Types ‘]’
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not an issue of this PR, but why are Singletons required to be non-empty?

@odersky odersky merged commit 8201bc8 into scala:master Dec 4, 2020
@odersky odersky deleted the fix-syntax-docs branch December 4, 2020 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants